package fudan.se.project.controller.response;

import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Setter;
import org.springframework.security.core.userdetails.UserDetails;


@EqualsAndHashCode(callSuper = true)
@Setter
@AllArgsConstructor
public class LoginResponse extends BaseResponse {

    private String token;
    private UserDetails user;

    public String getToken() {
        return token;
    }

    public UserDetails getUserDetails() {
        return user;
    }
}
